import { request } from '@/plugin/request'

// 加入收藏
export function addFavDate (options) {
  return request({
    url: '/goods/fav',
    method: 'get',
    params: {
      uid: options.uid,
      gid: options.gid
    }
  })
}

// 我的收藏接口
export function favListData (options) {
  return request({
    url: '/user/fav/index',
    method: 'get',
    params: {
      uid: options.uid,
      page: options.page ? options.page : 1
    }
  })
}

// 删除收藏
export function delFav (options) {
  return request({
    url: 'user/fav/del',
    method: 'get',
    params: {
      uid: options.uid,
      fid: options.fid
    }
  })
}

